require('./PageOkmsg.less');

import Reflux from 'reflux';
import ReactMixin from 'react-mixin';

import { Msg, Footer, FooterLinks, FooterLink, FooterText,Page } from 'react-weui/build/packages';
import { Control } from 'react-keeper'

class Okmsg extends React.Component {
  constructor(props) {
    super(props);
    this.gotoHome = this.gotoHome.bind(this);
  }

  gotoHome() {
    Control.replace('home','1234567');
  }

  render() {

    const SuccessFooter = ()=>(
      <Footer>

        <FooterText>
          Copyright © 2008-2017 湖北升思科技股份有限公司
        </FooterText>
      </Footer>
    );

    return (
      <Page className="page okmsg" infiniteLoader={false}>
        <Msg
          type="success"
          title="提示信息"
          description={<div>您已经成功的绑定了宜昌市智慧城建系统!<br />点击确定进入主页</div>}
          buttons={[{
                type: 'primary',
                label: '确定',
                onClick: this.gotoHome
            }]}
          footer={SuccessFooter}
        />

      </Page>

    );
  }

  componentWillMount() {

  }

  componentDidMount() {

  }

  componentWillReceiveProps(nextProps) {

  }

  shouldComponentUpdate(nextProps, nextState) {
    return true;
  }

  componentWillUpdate(nextProps, nextState) {

  }


  componentDidUpdate(prevProps, prevState) {

  }


  componentWillUnmount() {

  }

}


export default Okmsg ;
